<?php print $this->doctype()?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
	<?php
		print $this->headBase();
    	print $this->headMeta();
    	print $this->headTitle();
    	print $this->headScript();
    	print $this->headLink();
    	print $this->headStyle();
    ?>
</head>

<body>

<div class="container">
	<a class="logo" href="<?php print $this->baseUrl()?>">„SAR-BEX” INTROLIGATORNIA</a>
	<blockquote><p>Solidnie i na czas!</p></blockquote>

	<?php
		/* @var $navigation Zend_View_Helper_Navigation_Menu */
		$navigation = $this->siteNavigation('menu');
	
		/* @var $container Zend_Navigation_Container */
		$container = $navigation->getContainer();

		// znajdz aktywną stronę!
		if ('gallery' == $this->urlParams('module')) {
			$container->findBy('alias', 'galeria')->setActive(true);
		} else {
			// wyszukaj strony po polu ALIAS
			if (null !== ($alias = $this->urlParams('alias')))
			{
				if (null != ($page = $container->findBy('alias', $alias)))
				{
					$page->setActive(true);
				}
			} else
			// wyszukaj strony po polu ID
			if (null !== ($id = $this->urlParams('id'))) {
				if (null != ($page = $container->findBy('id', $id)))
				{
					$page->setActive(true);
				}
			}
		}
	
		// wydrukuj nawigację
		print $navigation->render();
	?>

	<?php print $this->layout()->content?>
	
	<div style="clear: both"></div>
</div>

<p class="foot">&copy; 2010 „SAR-BEX” INTROLIGATORNIA | <a href="http://www.promotor.krakow.pl" title="Agencja Reklamowa Promotor, Kraków">Promotor</a></p>

<?php print $this->inlineScript()?>
</body>
</html>